﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Apollo.AST
{
    /// <summary>
    /// 中缀表达式
    /// </summary>
    internal class Infix : Expression
    {
        public Expression? m_left;
        public Expression? m_right;
        public string m_operator;

        /// <summary>
        /// 构造函数
        /// </summary>
        public Infix() : base(NodeTypeEnum.INFIX)
        {

        }

        public override string ToString()
        {
            return $"Infix: Left:{m_left}, {m_operator} Right:{m_right}";
        }
    }
}
